import type { TableHeader, operationInstance } from "@/components/dzs-table/@types";

export const TABALE_HEADER: TableHeader[] = [
    {
        label: "名称",
        key: "title",
    },
    {
        label: "协议类型",
        key: "type",
    },
    {
        label: "是否显示",
        key: "is_show",
        isSlot: true,
    },
    {
        label: "更新时间",
        key: "updatetime",
    },
    {
        label: "创建时间",
        key: "addtime",
    },
    {
        label: "创建人",
        key: "createByUser",
    },
];

export const operation: Array<operationInstance> = ['edit', 'delete', 'detail'];

/**协议类型*/
export const typeOptions : Array<{ label: string, value: string }> = [
    { label: "用户协议", value: "用户协议" },
    { label: "隐私政策", value: "隐私政策" },
    { label: "服务协议", value: "服务协议" },
    { label: "关于我们", value: "关于我们" },
    { label: "普通协议", value: "普通协议" },
    { label: "常见问题", value: "常见问题" },
] 
